<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>台商品管理系统</title>
  <link rel="stylesheet" href="./layui/css/layui.css">
  <script type="text/javascript">
  	function change(type){
  		document.getElementById("demoAdmin").setAttribute("src",type+".html")
  		}
  	
  		
  	
  </script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo ">消费者维权后台管理平台</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->

    <ul class="layui-nav layui-layout-right">
    
      <li class="layui-nav-item"><a href="login.html">退出</a>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item ">
            <li class="layui-nav-item">
                <a href="javascript:;" data-url="statemanagement.html" onclick="changeFrameSrc(this)">维权通知</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;" data-url="article.html" onclick="changeFrameSrc(this)">文章管理</a>
            </li>
                        <li class="layui-nav-item">
                <a href="javascript:;" data-url="complaintsmanage.html" onclick="changeFrameSrc(this)">用户投诉</a>
            </li>
                        </li>
                        <li class="layui-nav-item">
                <a href="javascript:;" data-url="applymanage.html" onclick="changeFrameSrc(this)">申请管理</a>
            </li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
    	<iframe src="statemanagement.html" frameborder="0" id="demoAdmin" style="width: 100%" height="650"></iframe>
    </div>
  </div>
  

</div>
 <script src="layui/layui.js" charset="utf-8"></script>
<script>
//JS 
layui.use('element', function () {
            var element = layui.element;

            // 初始化导航
            element.init();

            // 修改iframe的src属性
            window.changeFrameSrc = function (elem) {
                var url = elem.getAttribute('data-url');
                document.getElementById('demoAdmin').src = url;
            };
        });
</script>
</body>
</html>